package com.ruoyi.lxy.zust.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.ruoyi.lxy.zust.domain.TStaff;
import com.ruoyi.lxy.zust.mapper.StaffMapper;
import com.ruoyi.lxy.zust.service.ITStaffService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;


@DS("slave")
@RequiredArgsConstructor
@Service
public class TStaffServiceImpl implements ITStaffService {
private final StaffMapper staffMapper;



    @Override
    public TStaff selectByZgh(String Zgh) {
        return staffMapper.selectByZgh(Zgh);
    }

    @Override
    public Boolean updateStaff(TStaff tStaff) {
        return staffMapper.update(tStaff,null)>0;
    }

    @Override
    public TStaff selectById(Long id) {
        return staffMapper.selectById(id);
    }


}
